package com.example.mapper;

import org.apache.ibatis.annotations.Mapper;

import com.example.bean.User;

import java.util.List;

@Mapper
public interface UserMapper {

	int insertUser(String name, String account, int age, String gender, String password, Integer isadmin);

	List<User> selectAllUser();

	List<User> selectUser(String query);
	
	User selectUserByAccount(String account);

	int deleteUserById(String id);

	int updateUserById(Integer id, String name, String account, int age, String gender, String password, Integer isadmin);

}
